function showDateTime(time){
    let datetime = new Date(time);
    let str = datetime.getFullYear() + "-" + formateTime(datetime.getMonth()) + "-" + formateTime(datetime.getDate()) +
        " " + formateTime(datetime.getHours()) + ":" + formateTime(datetime.getMinutes()) + ":" + formateTime(datetime.getSeconds());
    return str;
}

function showDate(time){
    let datetime = new Date(time);
    let str = datetime.getFullYear() + "-" + formateTime(datetime.getMonth()) + "-" + formateTime(datetime.getDate());
    return str;
}

function formateTime(date){
    return date < 10 ? "0"+date: date;
}